m = int(input())
link = list(map(int,input().split()))

def get_result(link,m):
    link.sort()

    sumv=0
    for i in link:
        sumv+=i

    while m>0:
        if can_partionmsu(link,sumv,m):
            return int(sumv/m)
        m-=1

        return sumv




def can_partionmsu(link,sumv,m):
    if sumv%m!=0:
        return False
    subsum=sumv/m
    